package com.vernhe;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Feign服务器，供其他服务调用
 *
 * @author VernHe
 * @date 2022年02月18日 16:04
 */
@SpringBootApplication
@EnableDiscoveryClient
@RestController
public class FeignServerApplication {

    @RequestMapping("/")
    public String serverHello() {
        return "Feign服务器返回的数据";
    }

    public static void main(String[] args) {
        SpringApplication.run(FeignServerApplication.class, args);
    }

}
